<?php
define('MODULE_NAME','shareinfo');
$actions = array('shareart','pubinfo','saveart','saveinfo','listart','delart','getcate', 'pubinfo2', 'saveinfo2', 'order', 'doorder', 'ordercomment', 'withdraw', 'sorder', 'wu', 'bill', 'orderupcontract', 'ordersign', 'orderdetail', 'createorder', 'orderdetailpc');
$action = 'shareart';

if(isset($_REQUEST['action']))
{
	$action = strtolower($_REQUEST['action']);
	if(!in_array($action,$actions))
		$action = 'shareart';
}

define('ACTION_NAME',$action);

require dirname(__FILE__).'/core/fanwe.php';
$fanwe = &FanweService::instance();
$fanwe->initialize();

if($_FANWE['uid'] == 0)
	fHeader("location: ".FU('user/login'));

require fimport('module/shareinfo');
switch(ACTION_NAME)
{
	case 'shareart':
		ShareInfoModule::shareart();
	break;
	case 'pubinfo':
		ShareInfoModule::pubinfo();
	break;
	case 'saveart':
		ShareInfoModule::saveart();
	break;
	case 'saveinfo':
		ShareInfoModule::saveinfo();
	break;
	case 'listart':
		ShareInfoModule::listart();
	break;
	case 'delart':
		ShareInfoModule::delart();
	break;
	case 'getcate':
		ShareInfoModule::getcate();
	break;
	case 'pubinfo2':
		ShareInfoModule::pubinfo2();
	break;
	case 'saveinfo2':
		ShareInfoModule::saveinfo2();
	break;
	case 'order':
		ShareInfoModule::order();
	break;
	case 'doorder':
		ShareInfoModule::doorder();
	break;
	case 'ordercomment':
		ShareInfoModule::ordercomment();
	break;
	case 'orderupcontract':
		ShareInfoModule::orderupcontract();
	break;
	case 'ordersign':
		ShareInfoModule::ordersign();
	break;
	case 'withdraw':
		ShareInfoModule::withdraw();
	break;
	case 'sorder':
		ShareInfoModule::sorder();
	break;
	case 'wu':
		ShareInfoModule::wu();
	break;
	case 'bill':
		ShareInfoModule::bill();
	break;
	case 'orderdetail':
		ShareInfoModule::orderdetail();
	break;
	case 'createorder':
		ShareInfoModule::createorder();
	break;
	case 'orderdetailpc':
		ShareInfoModule::orderdetailpc();
	break;
}

?>